23. When to Create a Custom Class

When to Create a Custom Class

INSTRUCTOR NOTE:

Hint

Check out these links to related videos:

What state(s) should a Word object contain? Select as many options as you think apply.

SOLUTION:
  • The Miwok translation of the word
  • The English translation of the word

What is the data type of each variable?

SOLUTION: String

What methods should we have? Select all that apply.

SOLUTION:
  • getMiwokTranslation()
  • getDefaultTranslation()

Solution Video

When to Create a Custom Word Class - Solution